home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / BSD #includes / sys / sys⁄unistd.h < prev    next >
Encoding:
Text File  |  1992-09-04  |  3.5 KB  |  82 lines  |  [TEXT/UNIX]

  1. g disclaimer in the
  2.  *    documentation and/or other materials provided with the distribution.
  3.  * 3. All advertising materials mentioning features or use of this software
  4.  *    must display the following acknowledgement:
  5.  *    This product includes software developed by the University of
  6.  *    California, Berkeley and its contributors.
  7.  * 4. Neither the name of the University nor the names of its contributors
  8.  *    may be used to endorse or promote products derived from this software
  9.  *    without specific prior written permission.
  10.  *
  11.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  13.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  14.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  15.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  16.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  17.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  18.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  19.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  20.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21.  * SUCH DAMAGE.
  22.  *
  23.  *    @(#)unistd.h    5.14 (Berkeley) 4/1/91
  24.  */
  25.  
  26. #ifndef _SYS_UNISTD_H_
  27. #define    _SYS_UNISTD_H_
  28.  
  29. /* compile-time symbolic constants */
  30. #define    _POSIX_JOB_CONTROL    /* implementation supports job control */
  31. #ifdef _NOTYET
  32. #define    _POSIX_SAVED_IDS    /* saved set-user-ID and set-group-ID */
  33. #endif
  34. #define    _POSIX_VERSION        198808L
  35.  
  36. /* execution-time symbolic constants */
  37. #define    _POSIX_CHOWN_RESTRICTED    /* chown requires appropriate privileges */
  38. #define    _POSIX_NO_TRUNC        /* too-long path components generate errors */
  39.                 /* may disable terminal special characters */
  40. #define    _POSIX_VDISABLE    ((unsigned char)'\377')
  41.  
  42. /* access function */
  43. #define    F_OK        0    /* test for existence of file */
  44. #define    X_OK        0x01    /* test for execute or search permission */
  45. #define    W_OK        0x02    /* test for write permission */
  46. #define    R_OK        0x04    /* test for read permission */
  47.  
  48. /* whence values for lseek(2) */
  49. #define    SEEK_SET    0    /* set file offset to offset */
  50. #define    SEEK_CUR    1    /* set file offset to current plus offset */
  51. #define    SEEK_END    2    /* set file offset to EOF plus offset */
  52.  
  53. #ifndef _POSIX_SOURCE
  54. /* whence values for lseek(2); renamed by POSIX 1003.1 */
  55. #define    L_SET        SEEK_SET
  56. #define    L_INCR        SEEK_CUR
  57. #define    L_XTND        SEEK_END
  58. #endif
  59.  
  60. /* configurable pathname variables */
  61. #define    _PC_LINK_MAX        1
  62. #define    _PC_MAX_CANON        2
  63. #define    _PC_MAX_INPUT        3
  64. #define    _PC_NAME_MAX        4
  65. #define    _PC_PATH_MAX        5
  66. #define    _PC_PIPE_BUF        6
  67. #define    _PC_CHOWN_RESTRICTED    7
  68. #define    _PC_NO_TRUNC        8
  69. #define    _PC_VDISABLE        9
  70.  
  71. /* configurable system variables */
  72. #define    _SC_ARG_MAX        1
  73. #define    _SC_CHILD_MAX        2
  74. #define    _SC_CLK_TCK        3
  75. #define    _SC_NGROUPS_MAX        4
  76. #define    _SC_OPEN_MAX        5
  77. #define    _SC_JOB_CONTROL        6
  78. #define    _SC_SAVED_IDS        7
  79. #define    _SC_VERSION        8
  80.  
  81. #endif /* !_SYS_UNISTD_H_ */
  82.